home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48_1 / rle_view < prev    next >
Text File  |  1995-03-31  |  11KB  |  185 lines

  1. From aurs01!aurw90!gingell@mcnc.org Wed Jun 12 17:49:20 1991
  2.  
  3. Subject: HP48S/SX RLE image viewer & decoder by Bob Scott.
  4. -------------------------------------------------
  5.  
  6. This is an RLE image viewer/decoder for the HP-48 family of calculators.
  7. Both high and medium res images are supported.  A sample image is included.
  8. Note: RLE = Run Length Encoded.  A large database of RLE files can be found
  9. on Compuserve in their QPICS forum  (GO QPICS).
  10.     
  11. files follow: RLE.DOC the documentation & RLE.HP (uuencoded) the program.
  12.  
  13. ------------------------------------------------------------------------
  14. The file RLE.HP is an HP-48 directory object containing an RLE (RUN
  15. LENGTH ENCODED) image decoder for the HP 48.  
  16.  
  17. Use:
  18. Transfer the directory to the 48.  Place an RLE image (string) on level
  19. one of the stack and press the softkey for the program RUN.  One sample
  20. image is included in the package as the variable "WX", which is a Compu-
  21. Serve high resolution weather map.  To view this image, press WX (recalls
  22. string to stack) then RUN (envokes viewer).  WX can be deleted when you're
  23. through playing with it.
  24.  
  25. When the program finishes, it beeps and drops you into the graphics view
  26. mode.  Use the arrow keys to pan around the image and the "-" key to shut
  27. off the menu keys (giving a larger image size).
  28.  
  29. Pressing the softkey labeled "CLR" will tidy up by erasing the program's
  30. temporary copy of the RLE string and clearing PICT.  This is not done
  31. automatically to allow you view the image later using the left-shift GRAPH
  32. function.  The image can be printed on the HP thermal printer by recalling
  33. PICT to the stack (e.g. type PICT then press RCL) and pressing PR1.
  34.  
  35. The program takes about five minutes for a high res image, less for medium
  36. res.  It searches for the the RLE start sequence ( <ESC>GH or <ESC>GM ) and
  37. begins from there, so it's okay if there is some garbage at the beginning
  38. of the file.  The end sequence is similarly located, but some images do not
  39. adhere to the RLE standard and leave this flag out.  As a fail-safe, the
  40. program appends a stop sequence to the RLE string before processing. 
  41. Consequently, garbage at the end of a file may be a problem if the RLE image
  42. isn't properly terminated.
  43.  
  44. Where do you get images?  Weather maps can be captured from CIS and countless
  45. images can be downloaded from the QPICS forum (GO QPICS).  I use a terminal
  46. program on the 48 that allows both capture of incoming text and Kermit
  47. up and downloads.  (I'd post it, but it's hideously slow.  Except for KERMIT
  48. transfers, it only processes at about 600 bps.  Praise be to ^Q/^S!)
  49.  
  50. Enjoy.  The usual disclaimers apply.  If your 48 explodes, your Smith
  51. Corona memory card melts down or you crash your car into a bus load of 
  52. nuns while playing with this on the freeway, it's your problem.  Your
  53. purchase price will be cheerfully refunded however!
  54.  
  55. Bob Scott 73125,1437
  56. -----------------------------------------------------------------------
  57.  
  58. begin 644 RLE.HP
  59. M2%!(4#0X+466*O!_OB@````"5U@"+"K0Z@$-"F-H87)A8W1E<G,N#0H;1T@@
  60. M?B!^(&4E*R$E(RPA)"4C(R,A(B$L(20E(R,D(R0C)",C)3`D)",C(R4C(R1[
  61. M(2HA(R(D(2,A*B(D(28A(R$B(2(A*R(H(2(A(R$B(2,A(B$C(2(A(R$D(3(A
  62. M(R$B(2,A(B$B(2,A(R$B(2,A>B$I(24A)R$L(20A*B$B(2(A+"$H(28A(B$B
  63. M(B(A(R$C(2<A,B$C(2(A(R$B(2,A(B$C(2(A(R%[(R4A)B$F(2TA)2,E(B,E
  64. M(B4D(2<A)2(C(2$A(2$B)20A)B$R)",E(B$C(2(E(B1^("$A(R$G(24A+B$H
  65. M(28A)2$L(28A*"$B(B(A(B$C(24A)2$R(2$A)"$C(2(A(R$B(2,A(B$A(7X@
  66. M(B$B(2@A)"$O(2@A(B$C(24A+"$E(24A(R$B(2,A(B$C(2(A(R$D(3(A(B$C
  67. M(2,A(B$B(2,A(R$B(2(A>R0K(R,E*B,C)"0C)B$K(R,A)R,D(R,A(R$C(R4A
  68. M,B$C(2(A(R$B(R0A(R$B(2,A?B!^('X@?B!^('X@?B!^('X@?B!^('X@?B!^
  69. M('X@?B!^('X@?B!^('X@?B!^('X@?B!^('X@8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@C(2<A1"8B)B(B
  134. M*"$V(48A+R%^("@E*"%#(B@D+"$W(D4A+B%^(#8A2B@J(3DA12$C(B@A?B`W
  135. M(4LD+2$R(R(A1R$M(7X@-R)+)"LN(R,B(T@B*R$F(GX@,2%9(BPC42(J(7X@
  136. M.B%'(BTB9"(H(7X@.R%2(2$A:"$G(7X@.R%&(BHC:2,A(B$A?B`[(5(A;2(B
  137. M(7X@/2$K)C0B*2%R(7X@/2$J(28A/2%S(7X@/B$I(2<A/"%R(7X@/R0D(B@B
  138. M."-Q(GX@1",A(2LA-B%S(7X@2"(L(34A?B!^($XA,R%Q(GX@6B$R(7X@?B!1
  139. M(3`B:B1^(&$A,"%M(GX@8B$O(6TB?B!C(2XA?B!^(%4A+"%^('X@5B(K(7X@
  140. M?B!8(2HA="1^(%XA*R%U(GX@4B0I(2HA;2@D(GX@6R$J(7X@?B!9(2DA:R9^
  141. M(&<A*2%^('X@62(H(6HD?B!K)2(B?B!^(&`B?B!^('X@?B!^('X@?B!^('X@
  142. M?B!>*'X@?B!^('X@?B!&)GX@?B!^('X@?B!((GX@?B!^('X@?B!*(GX@?B!^
  143. M('X@?B!*(GX@?B!^('X@?B!&(GX@?B!^('X@?B!^('X@?B!^('X@?B!^('X@
  144. M?B!^('X@?B!^('X@?B!*!QM'3@H*"D1I<W!L87D@36%P#0H@("TM+4AI9V@@
  145. M4F5S;VQU=&EO;BTM+0T*(#$@16YT:7)E(%4N4RX@*@T*"B`@("TM+4UE9&EU
  146. M;2!297-O;'5T:6]N+2TM#0H@,B!.;W)T:"!%87-T("H-"B"Z'D`@Q31%1<"B
  147. M`@D`L'&D`0`$4DQ%3@0L*K```!M'3AP`0)`U5"5%X*0""0!0`:`!``180U52
  148. M!$XJD```:@`:`%`@-44E154PDP(`````````!",`0"!5Y$1$,),"!`````!P
  149. M!P$A`$"0U12$1>"D`A4`\`L```````!@`@`$6$U!6`1.*E`!`/\`````````
  150. M)@!```45)$5`IP)W*0````````!E"0```````#%YEP(```````!0!@``````
  151. M`"`#'*M$*RHJJQ1F'EFKM!(#>0!`(#54)47@I`(5`!``````````8`(`!%1/
  152. M1T8$G2W@82/#+G*X'Q/#H>\BU<)1^R)TPE'](CDVLA(#2`!@(%5$5#549-#9
  153. M`AXV8K0<,RD0````````,I#0&CDVLA(#0P!0(`7%1"53T-D"'C;"A1Q(+F`@
  154. M5414-51TN!_#+D(K*IOMH>\BG2UPN!_#+D(K*G+IH>\BV/M1^R*=+;!I&50V
  155. M@N0"!%)#55)Y-M+,(,,NDBPJ8,.A[R*=+8#D`@120U522"Y`@#54)76V&L,N
  156. M@N0"!%A-05A=[*'O(ITM@.0"!%A#55)(+D"0-50EY2TJ@\>!Y`($6$U!6$@N
  157. M0)`U5"7E+2J#QX$Y'DXJ4`$```````````!(+D"0-50EE2PJ9ZMQN!]4-H+D
  158. M`@190U52>3;2S"#>HC)X'$@N0"`U5"6%Y`($6$-54F>K@>0"!%A-05@)K9$L
  159. M*@FM<;@?5#:"Y`($6$-54GDVTLP@R:*2T!I(+D"0-50EY2TJ@\>!.1XK,5#[
  160. M(ITM@.0"!%A#55)(+D"0-50EY2TJ@\>!Y`($6$-54D@N0"`U5"5UMAJ'^T%E
  161. M(T@N0(`U5"659R/-#)(L*@FM@>0"!%E#55+>HC)X')CCL1(#U2^R$@.U+]+9
  162. M`D@N0(`U5"6%Y`($4D-54F>K<;@?PRZ"Y`($6$U!6%WLH>\BG2V`Y`($6$U!
  163. M6`FMD2PJ":U!92-(+D"`-50EE6<CS0R2+"I4-H+D`@190U52>3:R1"`K,5#[
  164. M(ITM0&4C2"Y`@#54)95G(\T,LA(#U2^R$@/5+[(2`]4OLA(#M2_2V0+8^Y$L
  165. M*D@N0$#U=&2T$@/5+Y)C(RLQ@$(`!%!215`$G2W@82-.*E`!````````````
  166. MA_OAI`(5`!``````````D-`:5#:"Y`($6$-54GDVTLP@5#:"Y`($64-54GDV
  167. MTLP@R:)2+1Q(+C`@Q52$Y`($4DQ35+3*,2\J9ZM!92-(+E`@-44E195G(\T,
  168. M@N0"`U),14@N0"#%5.1$JQS)HI+0&E0V@N0"!%)%3D1Y-M+,($@N,"#%5(3D
  169. M`@524U125,FBDM`:A_O!A1S#+L*B`@<`@"27'OHNTMD"3BI0`0#_````````
  170. M`$XJ4`$`OP````````!.*E`!```!````````3BI0`0#``````````"LQ4/LB
  171. MG2W@I`(5`/`'````````X*0"%0#P!0```````."D`A4```@```````#@I`(5
  172. M```&````````L!(#U2\2(!Y4-H+D`@1934%8>3;2S"!4-H+D`@1834%8>3;2
  173. MS"!?XI%C(RLQD"L``U),10,L*E```!0`,##$)#70V0(>-N*D`A4`,`@`````
  174. M``#@I`(5```$````````$"`>7^+!H@(%`$!E(T@N,"#%5)1G(\T,DBPJU<*1
  175. M8R,K,<`(``-254X#G2W@82,9QA%,(VTN$&#F82,S*1`````````64%P<2"Y`
  176. M(,54Y'2V&E0V@N0"`U),17DVTLP@2"Y``"55!#7L(D@N4"`U125%-2\J_.RA
  177. M[R*=+<"B`A,`X/1$!2+%5(2%&O.B0E@:*S%0^R*=+4"G`DXJ4`$`````````
  178. M``!.*E`!````````````*S$`+QY(+E`@-44E187D`@1214Y$H#'2Y@(%4$])
  179. M3E1(+C`@Q534Y@(%4$])3E2'^X'D`@524$Q4,LFB@N0"!%1/1T9,,C*3`@,`
  180. M```````!,RF0F0``````4$!<&LFB4BT<NN*Q$@/5+]+F`@%F?\;A7R,Y-K(2
  181. !`[(2
  182. `
  183. end
  184.  
  185.